package ua.net.gm.server.condition;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Yason
 */
public abstract class ConditionChain implements ICondition
{
    private final List<ICondition> subCond;

    public ConditionChain()
    {
        subCond = new ArrayList<>();
    }

    protected List<ICondition> getSubConditions()
    {
        return subCond;
    }
    
    public ConditionChain addCondition(ICondition cond)
    {
        subCond.add(cond);
        return this;
    }
}
